import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'dayjs/locale/zh-cn'

import plugin from '@/plugin' // fast-crud 插件配置
import directive from '@/lib/directive'
import '@/assets/css/main.scss'
import 'virtual:uno.css'
import i18n from '@/i18n/index'

const app = createApp(App)

app.use(ElementPlus)
app.use(createPinia())
app.use(router)
app.use(plugin)
// 自定义指令
app.use(directive)
app.use(i18n)
app.mount('#app')
